/**
 * Created By: sisopipo Project Team
 * Created Date: Mar 4, 2011
 */
package com.sisopipo.assetsportal.security.domain;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ribin
 * @version 1.0
 */
public class Role {

	/** PK */
	private String id;

	/** role name */
	private String name;

	/** role description */
	private String desc;

	/** function set */
	private List<Function> functions = new ArrayList<Function>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String roleName) {
		this.name = roleName;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String description) {
		this.desc = description;
	}

	public List<Function> getFunctions() {
		return functions;
	}

	public void setFunctions(List<Function> functions) {
		this.functions = functions;
	}

	public void addFunction(Function function) {
		this.functions.add(function);
	}

}
